package com.zt.action;

import javax.servlet.http.HttpServletRequest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.gpb.common.page.Pagination;
import com.gpb.common.utils.MessageResolver;
import com.zt.web.FrontUtils;
@Controller
public class IndexAct {
	
	private Logger log = LoggerFactory.getLogger(IndexAct.class);
	
	/**
	 * TOMCAT的默认路径
	 * @param request
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/", method = RequestMethod.GET)
	public String index(HttpServletRequest request, ModelMap model) {
		System.out.println(MessageResolver.getMessage(request, "testmess"));
		return FrontUtils.getTplPath("index", "index.html");
	}

	/**
	 * @param request
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/index.jhtml", method = RequestMethod.GET)
	public String indexForWeblogic(HttpServletRequest request, ModelMap model) {
		return index(request, model);
	}

}
